package com.coldchain.admin.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 公司信用额度使用记录
 * </p>
 *
 * @author fangliai
 * @since 2018-09-21
 */
@TableName("ch_company_amount_use_logs")
public class CompanyAmountUseLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(type = IdType.UUID)
    private String id;

    @TableField("compayId")
    private String compayId;

    private BigDecimal amount;

    @TableField("orderNo")
    private String orderNo;

    /**
     * 月份
     */
    private Integer month;

    /**
     * 年份
     */
    private Integer year;

    @TableField("useTime")
    private Long useTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCompayId() {
        return compayId;
    }

    public void setCompayId(String compayId) {
        this.compayId = compayId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Long getUseTime() {
        return useTime;
    }

    public void setUseTime(Long useTime) {
        this.useTime = useTime;
    }

    @Override
    public String toString() {
        return "CompanyAmountUseLogs{" +
        "id=" + id +
        ", compayId=" + compayId +
        ", amount=" + amount +
        ", orderNo=" + orderNo +
        ", month=" + month +
        ", year=" + year +
        ", useTime=" + useTime +
        "}";
    }
}
